import { createStore, combineReducers, applyMiddleware } from 'redux'
import shopReducer from './module/ShopReducer'
import carReducer from './module/CarReducer'
import DetailReducer from './module/DetailReducer'
import homeReducer from './module/HomeReducer'
import thunk from 'redux-thunk'
import logger from 'redux-logger'

let reducer = combineReducers({
    shopReducer,
    carReducer,
    DetailReducer,
    homeReducer
})

export default createStore(reducer, applyMiddleware(thunk, logger))